INCLUDE(${CMAKE_SOURCE_DIR}/COMMON.cmake)

############################# Add Files ####################################

ADD_SRC_DIR(daodict_srcs core)
ADD_SRC_DIR(daodict_srcs utils)
ADD_SRC_DIR(daodict_srcs ui)
ADD_SRC_DIR(daodict_srcs ui/prefers)
ADD_SRC_DIR(daodict_srcs ui/addons)
ADD_SRC_DIR(daodict_srcs ui/component)
ADD_SRC_DIR(daodict_srcs ui/notebooks)

####################### FOR WIN32 ONLY ##########################
if(WIN32) # FOR WIN32
    FIND_PROGRAM(WINDRES windres DOC "MinGW windres")
    ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/daodict.rc.o
        COMMAND ${WINDRES} -I $ENV{WXWIN}/include -i ${CMAKE_CURRENT_SOURCE_DIR}/ui/daodict.rc -o ${CMAKE_CURRENT_BINARY_DIR}/daodict.rc.o
        DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ui/daodict.rc
    )
    
    ADD_SRC_FILE(daodict_srcs ${CMAKE_CURRENT_BINARY_DIR}/daodict.rc.o)
endif(WIN32)
#############################################################
